Several toml files do not pass the toml linter check
Categories
(Testing :: General, task)
Tracking
(firefox139 fixed)
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
I recently modified a test manifest (toml) file and ran ./mach lint --outgoing --fix
and was surprised to see that it moved code around of changes unrelated to my patch.
It turns out that in this particular example, a recently added entry was not in alphabetical order: test_ModelHubProvider.js
is placed between lowercase test_*
instead of uppercase test_*
at https://searchfox.org/mozilla-central/rev/03f39c99dc11e3f0c51cfb61b5f84cad988326d0/toolkit/mozapps/extensions/test/xpcshell/xpcshell.toml#151-155
I'm going to attach a patch that runs ./mach lint --fix
on several test manifests (toml files).
Assignee | ||
Comment 1•3 months ago
|
||
... to preserve alphabetical order, so that we don't have to make an
exception in the toml linter.
Assignee | ||
Comment 2•3 months ago
|
||
Assignee | ||
Comment 3•3 months ago
|
||
This diff was generated as follows:
List all toml files in the tree:
find * -name '*.toml' > /tmp/toml
Manually edited /tmp/toml to drop non-relevant entries (objdir).
Ran the toml linter for all files:
cat /tmp/toml | xargs ./mach lint -l test-manifest-toml --fix
Assignee | ||
Comment 4•3 months ago
|
||
Mark, do you know why the test-manifest-toml
linter did not trigger a warning in the patch to bug 1944689? It introduced the change that prompted me to look at the linter failure: https://phabricator.services.mozilla.com/D236448#change-YkF6uUWOgcWd
Assignee | ||
Updated•3 months ago
|
Comment 6•3 months ago
|
||
bugherder |
Comment 7•3 months ago
|
||
(In reply to Rob Wu [:robwu] from comment #4)
Mark, do you know why the
test-manifest-toml
linter did not trigger a warning in the patch to bug 1944689? It introduced the change that prompted me to look at the linter failure: https://phabricator.services.mozilla.com/D236448#change-YkF6uUWOgcWd
As far as I know it should work - I've seen it work for ESLint in the past. I've just filed the issue here.
Updated•3 months ago
|
Assignee | ||
Updated•2 months ago
|
Comment 9•2 months ago
|
||
bugherder |
Description
•